<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MNN: include/MNNDefine.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MNN
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a>  </div>
  <div class="headertitle">
<div class="title">MNNDefine.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;assert.h&gt;</code><br />
<code>#include &lt;stdio.h&gt;</code><br />
</div>
<p><a href="_m_n_n_define_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ad999135d97514ba00bec5dc1e1ea332e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_m_n_n_define_8h.html#ad999135d97514ba00bec5dc1e1ea332e">MNN_PRINT</a>(format, ...)&#160;&#160;&#160;printf(format, ##__VA_ARGS__)</td></tr>
<tr class="separator:ad999135d97514ba00bec5dc1e1ea332e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba005fe34113691e30b35a9a5a82f462"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_m_n_n_define_8h.html#aba005fe34113691e30b35a9a5a82f462">MNN_ERROR</a>(format, ...)&#160;&#160;&#160;printf(format, ##__VA_ARGS__)</td></tr>
<tr class="separator:aba005fe34113691e30b35a9a5a82f462"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae353a9c1a1afe84eeefafac7d7f5bed1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_m_n_n_define_8h.html#ae353a9c1a1afe84eeefafac7d7f5bed1">MNN_ASSERT</a>(x)</td></tr>
<tr class="separator:ae353a9c1a1afe84eeefafac7d7f5bed1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2a6a24458996b9d5b42706defb39989"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_m_n_n_define_8h.html#af2a6a24458996b9d5b42706defb39989">FUNC_PRINT</a>(x)&#160;&#160;&#160;<a class="el" href="_m_n_n_define_8h.html#ad999135d97514ba00bec5dc1e1ea332e">MNN_PRINT</a>(#x &quot;=%d in %s, %d \n&quot;, x, __func__, __LINE__);</td></tr>
<tr class="separator:af2a6a24458996b9d5b42706defb39989"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7015b5da5c04527d57cfb25d5145c26"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_m_n_n_define_8h.html#ae7015b5da5c04527d57cfb25d5145c26">FUNC_PRINT_ALL</a>(x,  type)&#160;&#160;&#160;<a class="el" href="_m_n_n_define_8h.html#ad999135d97514ba00bec5dc1e1ea332e">MNN_PRINT</a>(#x &quot;=&quot; #type &quot; %&quot; #type &quot; in %s, %d \n&quot;, x, __func__, __LINE__);</td></tr>
<tr class="separator:ae7015b5da5c04527d57cfb25d5145c26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a692428e2a0af8ffb79376d223a0695ab"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_m_n_n_define_8h.html#a692428e2a0af8ffb79376d223a0695ab">MNN_PUBLIC</a>&#160;&#160;&#160;__attribute__((visibility(&quot;default&quot;)))</td></tr>
<tr class="separator:a692428e2a0af8ffb79376d223a0695ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="af2a6a24458996b9d5b42706defb39989"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2a6a24458996b9d5b42706defb39989">&#9670;&nbsp;</a></span>FUNC_PRINT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FUNC_PRINT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="_m_n_n_define_8h.html#ad999135d97514ba00bec5dc1e1ea332e">MNN_PRINT</a>(#x &quot;=%d in %s, %d \n&quot;, x, __func__, __LINE__);</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae7015b5da5c04527d57cfb25d5145c26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7015b5da5c04527d57cfb25d5145c26">&#9670;&nbsp;</a></span>FUNC_PRINT_ALL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FUNC_PRINT_ALL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">type&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="_m_n_n_define_8h.html#ad999135d97514ba00bec5dc1e1ea332e">MNN_PRINT</a>(#x &quot;=&quot; #type &quot; %&quot; #type &quot; in %s, %d \n&quot;, x, __func__, __LINE__);</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae353a9c1a1afe84eeefafac7d7f5bed1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae353a9c1a1afe84eeefafac7d7f5bed1">&#9670;&nbsp;</a></span>MNN_ASSERT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MNN_ASSERT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">{                                                            \</div><div class="line">        int res = (x);                                           \</div><div class="line">        if (!res) {                                              \</div><div class="line">            MNN_ERROR(<span class="stringliteral">&quot;Error for %s, %d\n&quot;</span>, __FILE__, __LINE__); \</div><div class="line">        }                                                        \</div><div class="line">    }</div></div><!-- fragment -->
</div>
</div>
<a id="aba005fe34113691e30b35a9a5a82f462"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba005fe34113691e30b35a9a5a82f462">&#9670;&nbsp;</a></span>MNN_ERROR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MNN_ERROR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;printf(format, ##__VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad999135d97514ba00bec5dc1e1ea332e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad999135d97514ba00bec5dc1e1ea332e">&#9670;&nbsp;</a></span>MNN_PRINT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MNN_PRINT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;printf(format, ##__VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a692428e2a0af8ffb79376d223a0695ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a692428e2a0af8ffb79376d223a0695ab">&#9670;&nbsp;</a></span>MNN_PUBLIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MNN_PUBLIC&#160;&#160;&#160;__attribute__((visibility(&quot;default&quot;)))</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
